<?php

namespace Home\Model;
use Think\Model;

/**
 * 
 */
class IntroduceModel extends Model
{
	/**
	 * 查询一条数据
	 * @param  [int] $uid  [用户id]
	 * @param  [int] $type [教or学]
	 * @return [array]       [数据]
	 */
	public function detail($uid,$type){
		$where['uid'] = $uid;
		$where['type'] = $type;
		return $this -> where($where) -> find();
	}
}